class ChuangzuoTou {
  late List<Chuangzuo> data;
  late String title;
}

class ChuangzuoTi {
  late List<Chuangzuo> shuju;

  static ChuangzuoTi fromMap(Map<String, dynamic> map) {
    ChuangzuoTi roleEntityBean = ChuangzuoTi();

    roleEntityBean.shuju = []
      ..addAll((map['data'] as List ?? []).map((o) => Chuangzuo.fromMap(o)));

    return roleEntityBean;
  }

  Map toJson() => {
        "data": shuju,
      };
}

class Chuangzuo {
  late String huida;
  late String baoming;
  late String fenlei;
  late String tupian;
  late int shijian;
  late String shili;
  late int id;
  late String caidan;
  late String candan2;
  late String candan3;
  late int shuzi;
  late String tishici;
  late String juese;
  late String fubiaoti;
  late String biaoti;
  late int type;
  late String yonghushuliang;

  Map toJson() => {
        "answer": huida,
        "bid": baoming,
        "category": fenlei,
        "cover": tupian,
        "createTime": shijian,
        "example": shili,
        "id": id,
        "menu": caidan,
        "menu2": candan2,
        "menu3": candan3,
        "number": shuzi,
        "prompt": tishici,
        "role": juese,
        "subTitle": fubiaoti,
        "title": biaoti,
        "type": type,
        "userNumbers": yonghushuliang,
      };

  static Chuangzuo fromMap(Map<String, dynamic> map) {
    Chuangzuo dataBean = Chuangzuo();
    dataBean.huida = map['answer'];
    dataBean.baoming = map['bid'];
    dataBean.fenlei = map['category'];
    dataBean.tupian = map['cover'];
    dataBean.shijian = map['createTime'];
    dataBean.shili = map['example'];
    dataBean.id = map['id'];
    dataBean.caidan = map['menu'];
    dataBean.candan2 = map['menu2'];
    dataBean.candan3 = map['menu3'];
    dataBean.shuzi = map['number'];
    dataBean.tishici = map['prompt'];
    dataBean.juese = map['role'];
    dataBean.fubiaoti = map['subTitle'];
    dataBean.biaoti = map['title'];
    dataBean.type = map['type'];
    dataBean.yonghushuliang = map['userNumbers'];
    return dataBean;
  }
}
